<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改网点管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content pt-md">
        <form class="form-horizontal" id="form-location-edit" th:object="${gyLocation}">
            <input name="locationId" th:field="*{locationId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">网点名称：</label>
                <div class="col-sm-8">
                    <input name="locationName" required maxlength="50" th:field="*{locationName}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">网点图标：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="iconUrl" th:field="*{iconUrl}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">网点编号：</label>
                <div class="col-sm-8">
                    <input name="number" th:field="*{number}" class="form-control" required   maxlength="50" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">显示顺序：</label>
                <div class="col-sm-8">
                    <input name="orderNum" th:field="*{orderNum}"   oninput = "value=value.replace(/[^\d]/g,'')" maxlength="10"  required class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">负责人：</label>
                <div class="col-sm-8">
                    <input name="leader" th:field="*{leader}" maxlength="50"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input name="phone" th:field="*{phone}" maxlength="11" oninput = "value=value.replace(/[^\d]/g,'')" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "gy/location";
        $("#form-location-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-location-edit').serialize());
            }
        }
    </script>
</body>
</html>